package com.itdachang.design.creatation.factory.factorymethod;

/**
 * 迷你汽车
 * @author gcq
 * @Create 2022-02-07
 */
public class MiniCar extends AbstractCar {
    public MiniCar() {
        this.engine = "四缸汽油机";
    }
    @Override
    public void run() {
        System.out.println(this.engine + "---> 启动");
    }
}